#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :really_brow.py
# @Time      :2024/3/4 21:54
# @Author    :Sherlock
from playwright.sync_api import sync_playwright


with sync_playwright() as playwright:
    browser = playwright.chromium.launch(headless=False)
    context = browser.new_context()
    context.add_init_script(path='stealth.min.js')
    page = context.new_page()
    page.goto("https://www.baidu.com")
    print(page.evaluate("window.navigator.webdriver"))

    input()
    page.close()
    context.close()
    browser.close()
